def handle_host_list(host_ids):
    from zeus.operation_service.app.proxy.host import HostProxy
    context_hosts = list()
    for host_id in host_ids:
        host = HostProxy().get_host_by_id(host_id)
        context_hosts.append({
            "hostname": host.get("host_name"),
            "ip": host.get("host_ip"),
            "port": host.get("ssh_port"),
            "username": host.get("ssh_user"),
            "passwordless": False,
            "password": HostProxy().get_host_pkey_by_id(host_id).replace('\n','\\n')
        })
    return context_hosts
